package com.ssm;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "kaptcha")
public class KaptchaProperties {
    private int imageWidth = 100;
    private int imageHeigth = 40;
    private int textproducerFonSize = 32;
    private String textproducerFontColor="0,0,0";
    private String textproducerCharString="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTAZ";
    private int textproducerCharLength=4;
    private String noiseImpl="com.google.code.kaptcha.impl.NoNoise";

    public int getImageWidth() {
        return imageWidth;
    }

    public void setImageWidth(int imageWidth) {
        this.imageWidth = imageWidth;
    }

    public int getImageHeigth() {
        return imageHeigth;
    }

    public void setImageHeigth(int imageHeigth) {
        this.imageHeigth = imageHeigth;
    }

    public int getTextproducerFonSize() {
        return textproducerFonSize;
    }

    public void setTextproducerFonSize(int textproducerFonSize) {
        this.textproducerFonSize = textproducerFonSize;
    }

    public String getTextproducerFontColor() {
        return textproducerFontColor;
    }

    public void setTextproducerFontColor(String textproducerFontColor) {
        this.textproducerFontColor = textproducerFontColor;
    }

    public String getTextproducerCharString() {
        return textproducerCharString;
    }

    public void setTextproducerCharString(String textproducerCharString) {
        this.textproducerCharString = textproducerCharString;
    }

    public int getTextproducerCharLength() {
        return textproducerCharLength;
    }

    public void setTextproducerCharLength(int textproducerCharLength) {
        this.textproducerCharLength = textproducerCharLength;
    }

    public String getNoiseImpl() {
        return noiseImpl;
    }

    public void setNoiseImpl(String noiseImpl) {
        this.noiseImpl = noiseImpl;
    }
}
